import request from '@/utils/myRequest'

// 查询所有一级二级分类
function getAllCategory() {
  return request({
    url: `/lejuAdmin/category/getAllCategory`
  })
}
// 更新分类
function updateCategory(data) {
  return request({
    url: `/lejuAdmin/category/updateCategory`,
    method: 'POST',
    data
  })
}
export { getAllCategory, updateCategory }
